class AddNameAndAgeAndSexAndCountryAndSchoolAndFriendsCountAndPrizeIdToUsers < ActiveRecord::Migration
  def self.up
    add_column :users, :name, :string
    add_column :users, :age, :integer
    add_column :users, :sex, :string
    add_column :users, :country, :string
    add_column :users, :school, :string
    add_column :users, :friends_count, :integer,:default=>0
    add_column :users, :prize_id, :integer
  end

  def self.down
    remove_column :users, :prize_id
    remove_column :users, :friends_count
    remove_column :users, :school
    remove_column :users, :country
    remove_column :users, :sex
    remove_column :users, :age
    remove_column :users, :name
  end
end
